package day015.homework.p1;

import java.util.Random;
import java.util.TreeSet;

public class Test1 {
    public static void main(String[] args) {
        Random rand = new Random();
        TreeSet<Integer> set = new TreeSet<>();
        for (int i = 0; i < 10; i++) {
            set.add(rand.nextInt(51));
        }

        for (Integer num : set) {
            System.out.print(num + "\t");
        }
        System.out.println();
    }
}
